package com.myf.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.myf.typeHandlers.JsonbTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "whs_location", autoResultMap = true)
public class WarehouseLocationEntity extends BaseEntity {
    @TableId(type = IdType.AUTO)
    public Integer id;

    @TableField("warehouse_id")
    public int warehouseId;

    public String code;

    public String name;

    public Double capacity;

    @TableField("capacity_current")
    public Double capacityCurrent;

    @TableField("measurement_unit")
    public String measurementUnit;

    public short category;

    public String asile;

    public String bay;

    public  String row;

    public String floor;

    public float x;

    public float y;

    public float z;

    public float length;

    public float width;

    public float height;

    public short status;

    @TableField(typeHandler = JsonbTypeHandler.class)
    public String attributes;
}
